import request from "@/utils/request";
import { stringify } from "qs";

export async function getInventoryList(params) {
	return request(`/new-wms/inventory/warehouse-inventory?${stringify(params)}`, {
		loading: true
	});
}
//用户仓库下拉列表
export async function getWarehouseList() {
	return request(`/zjf-wms/warehouse/list`, {
		loading: true
	});
}
// 正品、次品、增加库存
export async function inventoryChange(params) {
	return request(`/new-wms/inventory/inventory-change`, {
		method: "post",
		data: params,
		loading: true
	});
}
// 查询仓库金额
export async function inventorySum(params) {
	return request(`/new-wms/inventory/warehouse-sum?${stringify(params)}`, {
		method: "post",
		loading: true
	});
}
// 销售锁定数
export async function getSalesLockList(params) {
	return request(`/new-wms/inventory/sales-lock-list`, {
		method: "post",
		data: params,
		loading: true
	});
}
// 出入库记录
export async function getInventoryLogList(params) {
	return request(`/new-wms/inventory/operation-log?${stringify(params)}`, {
		loading: true
	});
}
